package Student;

import java.util.ArrayList;

public class ClassManager {
    private ArrayList<String> classes = new ArrayList<>();

    public void addClass(String className) {
        if (!classes.contains(className)) {
            classes.add(className);
        }
    }

    public void removeClass(String className) {
        classes.remove(className);
    }

    public ArrayList<String> getAllClasses() {
        return new ArrayList<>(classes);
    }

    public boolean classExists(String className) {
        return classes.contains(className);
    }
}
